package business.other.punish.impl;

import business.other.punish.ConstructionPunishInfoSerrvice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import other.domain.ConstructionPunishInfo;
import other.domain.ConstructionPunishInfoCriteria;
import other.mapper.ConstructionPunishInfoMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/17.
 */
@Service(value = "constructionPunishSerrvice")
public class ConstructionPunishInfoSerrviceImpl implements ConstructionPunishInfoSerrvice {
    @Autowired
    ConstructionPunishInfoMapper constructionPunishInfoMapper;
    @Override
    public List<ConstructionPunishInfo> getConstructionPunishInfo() {
        ConstructionPunishInfoCriteria criteria = new ConstructionPunishInfoCriteria();
        criteria.createCriteria().getAllCriteria();
        return constructionPunishInfoMapper.selectByExample(criteria);
    }
}
